<div style="min-height:250px;padding:0px 20px 20px 20px;">
<div id="rsvErrors"> </div>
<?php
if($status==1)
{
	 echo "<div class='regSucc'>Registration successfull. Please check your mail for verification</div>";
}
else
{
?>  
 
<form action="<?= $base_url; ?>member/reg/<?= $cur_page;?>" method="post" id="reg_form" class="reg_form_01" >

<br/>
<?php
if(!empty($mismatch))
{
	echo "<font color='#990066'> <b>Password entered doesn't match </b></font>";
}
?>
<h3 class="tit_1"> Registration Form </h3>

	 <label class="reg"> Name <span class="imprtnt">*</span> </label>
     									<input class="inpt_reg" type="text" name="name" value="<?php echo $member['name'];?>" /><br/>
	
    <label class="reg"> Gender</label>
    								<input type="radio" class="radio" name="gender" value="male" <?php if($member['gender']=='male') echo "checked"; ?>/><font size="+1">Male</font>
    <input class="radio" <?php if($member['gender']=='female') echo "checked"; ?> value="female" type="radio" name="gender" /><font size="+1">Female </font> <br/>
    
	<?php /*<label class="reg"> Dob</label> 
										<input class="txt" type="text" name="dob" value="<?php echo $member['name'];?>" /> <br/>*/ ?>

    <label class="reg">Email <span class="imprtnt">*</span></label>   
    									 <input class="inpt_reg" type="text" name="email_id" value="<?php echo $member['email_id'];?>" /><br/>
	
    <label class="reg">Retype email <span class="imprtnt">*</span></label>  
    									 <input class="inpt_reg" type="text" name="re_email" value="<?php echo $member['email_id'];?>" /><br/>
	<label class="reg">password <span class="imprtnt">*</span></label>
		        						<input class="inpt_reg" type="password" name="password" value="<?php echo $member['password'];?>" /><br/>
    <label class="reg"> retype password <span class="imprtnt">*</span></label>
		        						<input class="inpt_reg" type="password" name="repassword" value="<?php echo $member['repassword'];?>" /><br/>
	<label class="reg"> landline</label>       
       									 <input class="inpt_reg" type="text" name="landline" value="<?php echo $member['landline'];?>" /><br/>
   <label class="reg"> mobile <span class="imprtnt">*</span> </label>
        								 <input class="inpt_reg" type="text" name="mobile" value="<?php echo $member['mobile'];?>" /><br/>
    
	 <label  class="reg"> addressline1 <span class="imprtnt">*</span> </label>        
											 <input class="inpt_reg" type="text" name="addressline1" value="<?php echo $member['addressline1'];?>" /> <br/>

		<label  class="reg"> addressline2 </label> 
        										 <input class="inpt_reg" type="text" name="addressline2" value="<?php echo $member['addressline2'];?>" /><br/>
		<label  class="reg"> City <span class="imprtnt">*</span></label>
        									 <input class="inpt_reg" type="text" name="city" value="<?php echo $member['city'];?>" /><br/>
		<label  class="reg"> State    </label>
        									<input class="inpt_reg" type="text" name="state" value="<?php echo $member['state'];?>" />
        <br/>
		<label  class="reg"> Pincode <span class="imprtnt">*</span></label> 
        									<input class="inpt_reg" type="text" name="pincode" value="<?php echo $member['pincode'];?>" /><br/><br/>
		
			<div class="buttons">
			    <button type="submit" name="save" class="b21" value="save" >
			       
			          <?php if(!empty($id)) { ?>
 							Update 
 							<input type="hidden" name="id" value="<?php echo $id;?>" />
                       
 							<input  type="hidden" name="rurl" value="<?php echo $rurl;?>" />
 					  <?php } else { ?>
 					  	Register     					  	<?php } ?>

 			    </button><a href="javascript: history.go(-1)" style="text-decoration:none;"><button type="button" name="cancel" class="b21" value="cancel" style="text-decoration:none;" > Cancel </button></a>

			
			</div>



 </form>

 <script>
 $(document).ready(function() {
     $("#reg_form").RSV({
       onCompleteHandler: frmSubmit,
       errorFieldClass: "errorDesc",
       displayType: "display-html",
       errorHTMLItemBullet: "&#8212; ",
             rules: [
                     "required,name,Please enter name.",
					 "required,email_id,Please enter email id",
					 "valid_email,email_id,Please enter valid email id",
					 "required,re_email,Please re-enter email id",
					 "same_as,email_id,re_email,Please very the emailid",
					 "valid_email,re_email,Please enter valid email id",
					 "required,password,Please enter password",
					 "required,repassword,Please re-enter password",
					 "same_as,password,repassword,Passwords must be same",
					 "required,mobile,Please enter mobile",
					 "required,addressline1,Please enter addressline1",
					 "required,city,Please enter city",
					 "required,pincode,Please enter pincode",
					 
             ]
     });
  // a custom onComplete handler to prevent form submits for the demo
     function frmSubmit()
     {
       return true;
     }

        
});
 </script>
 <?php
}
 ?>
 </div>